package com.tg.app.activity.account;

import android.os.Bundle;
import androidx.annotation.Nullable;

import android.view.View;
import android.view.Window;
import android.widget.TextView;

import com.tg.app.R;
import com.base.BaseActivity;
import com.appbase.custom.base.FeedBackInfo;


public class QuestionAnswerActivity extends BaseActivity {

    public static final String KET_TITLE="key_title";
    public static final String KEY_FEEDINFO="key_feedinfo";
    TextView titletv;

    TextView questiontv;
    TextView answertv;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);//remove title bar  即隐藏标题栏
        setContentView(R.layout.activity_questionanswer);
        hideActionBar();
        initView();
    }

    protected void initView(){
        findViewById(R.id.back_toolbar).setOnClickListener(new View.OnClickListener() {
            @Override

            public void onClick(View v) {
                finish();
            }
        });
        FeedBackInfo info=getIntent().getParcelableExtra(KEY_FEEDINFO);
        titletv=findViewById(R.id.titletv);
        titletv.setText(getIntent().getStringExtra(KET_TITLE));
        questiontv=findViewById(R.id.questiontv);
        questiontv.setText(info.getTitle());
        answertv=findViewById(R.id.answertv);
        answertv.setText(info.getAnswer());
    }
}
